<table class="table table-hover">
    <thead>
    <tr>
        <th width="25%">名称</th>
        <th width="10%">状态</th>
        <th width="6%">重启数</th>
        <th width="15%">开始时间</th>
        <th width="10%">Pod IP</th>
        <th width="10%">宿主机 IP</th>
        <th width="12%" class="text-center">CPU</th>
        <th width="12%" class="text-center">内存</th>
    </tr>
    </thead>
    <tbody>
    <tr ng-repeat="elem in list.table">
        <td>
            <a ui-sref="k8s-pod-detail({name: elem.name, namesp: elem.namespace, kDbCode: list.dbCode,
            srvName: list.srvName, nodeIp: list.nodeIp, rsName:list.rsName, from: list.from})">{{::elem.name}}</a>
        </td>
        <td ng-switch="::elem.podPhase">
            <span class="text-success" ng-switch-when="Running">Running</span>
            <span class="text-warning" ng-switch-when="Pending">Pending</span>
            <span class="text-danger" ng-switch-when="Failed">Failed</span>
        </td>
        <td>{{::elem.restartCount}}</td>
        <td>{{::elem.startTime | date:'yyyy-MM-d HH:mm:ss'}}</td>
        <td>{{::elem.podIP}}</td>
        <td>{{::elem.nodeName}}</td>
        <td class="text-center" ng-switch="::elem.podPhase">
            <span class="text-success" ng-switch-when="Running">
                {{(list.podRes[$index].podCpuUsage + 0.005).toFixed(2)}} 核</span>
            <span ng-switch-default class="text-danger">N/A</span>
        </td>
        <td class="text-center" ng-switch="::elem.podPhase">
            <span class="text-info" ng-switch-when="Running">
            {{list.podRes[$index].podMemoryUsage}} MB</span>
            <span ng-switch-default class="text-danger">N/A</span>
        </td>
    </tr>
    </tbody>
</table>
<!--Loading-->
<div class="loading" ng-show="!list.table"></div>
<!--分页-->
<div ng-show="list.table" class="pagination-group">
    <ui-pagination-info items-per-page="10" items-per-page-select="false"
                        total-items="list.page.totalItems"
                        current-page="list.page.currentPage"></ui-pagination-info>
    <button type="button" ng-click="list.getList()" class="btn btn-default btn-refresh"><i class="fa fa-refresh"></i></button>
    <ui-pagination items-per-page="10" total-items="list.page.totalItems"
                   ng-model="list.page.currentPage" ng-change="list.getList()"></ui-pagination>
</div>